package com.example.sky.dao;

import com.example.sky.entity.Hello;
import com.github.pagehelper.Page;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

// 声明成mybatis Dao层的Bean
@Mapper
public interface HelloMapper {
    int insert(Hello record);

    int insertSelective(Hello record);

    List<Hello> findAll();

    /**
     * 分页查询数据
     * @return
     */
    Page<Hello> findByPage();
}